<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no"/>
  <title>上传音乐 | 音乐服务器</title>
  <link rel="stylesheet" href="css/bootstrap.min.css" />
  <style>
    body {
      margin: 0;
      padding: 0;
      height: 100vh;
      background: linear-gradient(120deg, #0f0f0f 0%, #1a1a1a 100%);
      font-family: "Segoe UI", "Microsoft YaHei", sans-serif;
      display: flex;
      align-items: center;
      justify-content: center;
      color: #e0e0e0;
      background-attachment: fixed;
    }

    .upload-box {
      width: 100%;
      max-width: 480px;
      padding: 40px;
      background: rgba(255, 255, 255, 0.05);
      backdrop-filter: blur(16px);
      border-radius: 20px;
      border: 1px solid rgba(255, 255, 255, 0.1);
      box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6);
    }

    .upload-box h3 {
      text-align: center;
      margin-bottom: 30px;
      background: linear-gradient(90deg, #8a79ff, #a57aff);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
      font-weight: bold;
      font-size: 26px;
    }

    label, input {
      display: block;
      width: 100%;
    }

    .form-group {
      margin-bottom: 20px;
    }

    input[type="file"],
    input[type="text"] {
      background-color: rgba(255, 255, 255, 0.07);
      border: none;
      color: #fff;
      border-radius: 10px;
      padding: 10px;
      font-size: 16px;
    }

    input[type="text"]::placeholder {
      color: #aaa;
    }

    input[type="submit"] {
      width: 100%;
      height: 45px;
      background: linear-gradient(135deg, #6a5acd, #8e7dff);
      border: none;
      color: #fff;
      font-weight: bold;
      border-radius: 10px;
      cursor: pointer;
      transition: 0.3s ease;
    }

    input[type="submit"]:hover {
      background: linear-gradient(135deg, #9b87ff, #bfa7ff);
      transform: scale(1.02);
      box-shadow: 0 0 15px rgba(138, 115, 255, 0.4);
    }

    @media screen and (max-width: 480px) {
      .upload-box {
        padding: 30px 20px;
      }
    }
  </style>
</head>
<body>
  <div class="upload-box">
    <h3>🎵 上传音乐</h3>
    <form method="POST" enctype="multipart/form-data" action="/music/upload">
      <div class="form-group">
        <label for="file">🎶 音乐文件</label>
        <input type="file" id="file" name="filename" required />
      </div>
      <div class="form-group">
        <label for="singer">👤 歌手名</label>
        <input type="text" id="singer" name="singer" placeholder="请输入歌手名" required />
      </div>
      <input type="submit" value="📤 上传" />
    </form>
  </div>
</body>
</html>
